window.onload=function(){

    //table img↓
    $('#tp_0').click(function () {
        $(".imgbox").css("display", "none");
        $(".table_photo li").css("display", "none");
        $(".table_photo h5").css("display", "block");
        $(".table_photo").css("display", "none");
        $("#tp_0").css("display", "none");
        $("#tp_1").css("display", "block");
    });
    $('#tp_1').click(function () {
        $(".imgbox").css("display", "block");
        $(".table_photo li").css("display", "block");
        $(".table_photo h5").css("display", "none");
        $(".table_photo").css("display", "block");
        $("#tp_1").css("display", "none");
        $("#tp_0").css("display", "block");
    });
    $('#tp_2').click(function () { //隐患记录照片
        $("#updateimg").css("display", "none");
        $("#tp_2").css("display", "none");
        $("#tp_3").css("display", "block");
    });
    $('#tp_3').click(function () {
        $("#updateimg").css("display", "block");
        $("#tp_2").css("display", "block");
        $("#tp_3").css("display", "none");
    });
    $('#tp_20').click(function () {
        $("#updateimg20").css("display", "none");
        $("#tp_21").css("display", "block");
        $("#tp_20").css("display", "none");
    });
    $('#tp_21').click(function () {
        $("#updateimg20").css("display", "block");
        $("#tp_20").css("display", "block");
        $("#tp_21").css("display", "none");
    });

    $('#tp_30').click(function () {
        $("#updateimg30").css("display", "none");
        $("#tp_31").css("display", "block");
        $("#tp_30").css("display", "none");
    });
    $('#tp_31').click(function () {
        $("#updateimg30").css("display", "block");
        $("#tp_30").css("display", "block");
        $("#tp_31").css("display", "none");
    });
    //整改图片隐藏
    // $('#table_r1').click(function () {   
    //     $("#imgh5_1").css("display", "block");
    //     $("#updateimg").css("display", "block");
    //     $("body canvas").css("display", "block");
    //     $('#imgh5_2').css("display", "block");
    //     $('.table_btn_canver01').css("display", "inline-block");
    //     $('.table_btn_canver01').css("text-align", "center");
    // });
    // $('#table_r2').click(function () {
    //     $("#imgh5_1").css("display", "none");
    //     $("#updateimg").css("display", "none");
    //     $("body canvas").css("display", "none");
    //     $('.table_btn_canver01').css("display", "none");
    //     $('#imgh5_2').css("display", "none");
    // });
    // $('#table_r3').click(function () {
    //     $("#imgh5_1").css("display", "none");
    //     $("#updateimg").css("display", "none");
    //     $("body canvas").css("display", "none");
    //     $('.table_btn_canver01').css("display", "none");
    //     $('#imgh5_2').css("display", "none");
    // });
    // $('#table_r4').click(function () {
    //     $("#imgh5_1").css("display", "none");
    //     $("#updateimg").css("display", "none");
    //     $("body canvas").css("display", "none");
    //     $('.table_btn_canver01').css("display", "none");
    //     $('#imgh5_2').css("display", "none");
    // });


    $('#tp_if1_a1').click(function () { //排查页面被检查人
        $("html").css("overflow","");
        $("body").css("overflow","");
        $("#tp_if1_a2").css("display","block");
        $("#canvas_box1").css("top","-1000%");
        $("#canvar_imgbox1").css("display", "inline-block");
        $("#tp_if1_a2").val("修改签名");
        $(".c_imgbox").css("display","block");
    });
    $('#tp_if1_a2').click(function () {  
        $("#canvas_box1").css("top","0%");
        $("html").css("overflow","hidden");
        $("body").css("overflow","hidden");
        $("#tp_if1_a1").css("display","block");
        $("#tp_if1_a2").css("display","none");
    });

  $('#table_staff_1').click(function(){   
            $(".table_1_box").css("display","block"); 
            });

  $('#table_staff_1').click(function(){   
            $(".table_2_box").css("display","block");
        $(".inves_box_shax").css("display", "block");
            });
  $('#table_box_btn1').click(function(){   
            $(".table_1_box").css("display","none");
         $(".inves_box_shax").css("display", "none");
              var strname=$("input:checkbox[name='table_staff_1']:checked").next().text();
               $('.table_text_box').val(strname)
               $(".table_edit_btn").css("top","0px");
               $(".table_userbox").css("top","0px");
               $(".table_text_box").css("top","2px");});

        $('#tp_if1_a3').click(function () { //现场检查页面被检查人
        $("html").css("overflow","");
        $("body").css("overflow","");
        $("#tp_if1_a4").css("display","block");
        $("#canvas_box2").css("top","-1000%");
        $("#canvar_imgbox2").css("display", "inline-block");
        $("#tp_if1_a4").val("修改签名");
        $(".c_imgbox").css("display","block");
    });
    $('#tp_if1_a4').click(function () {  
        $("#canvas_box2").css("top","0%");
        $("html").css("overflow","hidden");
        $("body").css("overflow","hidden");
        $("#tp_if1_a3").css("display","block");
        $("#tp_if1_a4").css("display","none");
    });

    $('#tp_if1_a5').click(function () { //工作人员1
        $("html").css("overflow","");
        $("body").css("overflow","");
        $("#tp_if1_a6").css("display","block");
        $("#canvas_box3").css("top","-1000%");
        $("#canvar_imgbox4").css("display", "block");
        $("#tp_if1_a6").val("修改签名1");
        $(".canvar_imgbox_satdd1").css("display","block");
    });
    $('#tp_if1_a6').click(function () {  
        $("#canvas_box3").css("top","0%");
        $("html").css("overflow","hidden");
        $("body").css("overflow","hidden");
    });

        $('#tp_if1_a7').click(function () { //工作人员2
        $("html").css("overflow","");
        $("body").css("overflow","");
        $("#tp_if1_a8").css("display","block");
        $("#canvas_box4").css("top","-1000%");
        $("#canvar_imgbox5").css("display", "block");
        $("#tp_if1_a8").val("修改签名2");
        $(".canvar_imgbox_satdd2").css("display","block");
    });
    $('#tp_if1_a8').click(function () {  
        $("#canvas_box4").css("top","0%");
        $("html").css("overflow","hidden");
        $("body").css("overflow","hidden");
    });

    $('#tp_if1_a9').click(function () { //工作人员3
        $("html").css("overflow","");
        $("body").css("overflow","");
        $("#tp_if1_a10").css("display","block");
        $("#canvas_box5").css("top","-1000%");
        $("#canvar_imgbox6").css("display", "block");
        $("#tp_if1_a10").val("修改签名3");
        $(".canvar_imgbox_satdd3").css("display","block");
    });
    $('#tp_if1_a10').click(function () {  
        $("#canvas_box5").css("top","0%");
        $("html").css("overflow","hidden");
        $("body").css("overflow","hidden");
    });
    $('#tp_if1_a11').click(function () { //工作人员4
        $("html").css("overflow","");
        $("body").css("overflow","");
        $("#tp_if1_a12").css("display","block");
        $("#canvas_box6").css("top","-1000%");
        $("#canvar_imgbox7").css("display", "block");
        $("#tp_if1_a12").val("修改签名4");
        $(".canvar_imgbox_satdd4").css("display","block");
    });
    $('#tp_if1_a12').click(function () {  
        $("#canvas_box6").css("top","0%");
        $("html").css("overflow","hidden");
        $("body").css("overflow","hidden");
    });

//table-inves...table↑
//
// 
    $('#btn_paicha').click(function () {
        $(".hidden_sub_box1").css("display", "block");
        $("html").css("overflow", "hidden");
        $("body").css("overflow", "hidden");
    });
//table-i-div-box
    $('#table_b_chebox1').click(function(){
      if($("#table_b_chebox1").is(":checked")){
        $("#inves_edit_b1").css("display","block")
     }else{
        $("#inves_edit_b1").css("display","none")
     };
     });

     $('#table_b_chebox2').click(function(){
      if($("#table_b_chebox2").is(":checked")){
        $("#inves_edit_b2").css("display","block")
     }else{
        $("#inves_edit_b2").css("display","none")
     };
     });

      $('#table_b_chebox3').click(function(){
      if($("#table_b_chebox3").is(":checked")){
        $("#inves_edit_b3").css("display","block")
     }else{
        $("#inves_edit_b3").css("display","none")
     };
     });

       $('#table_b_chebox4').click(function(){
      if($("#table_b_chebox4").is(":checked")){
        $("#inves_edit_b4").css("display","block")
     }else{
        $("#inves_edit_b4").css("display","none")
     };
     });

    //xfaq 5-9
       $('#table_b_chebox5').click(function(){
      if($("#table_b_chebox5").is(":checked")){
        $("#inves_edit_b5").css("display","block")
     }else{
        $("#inves_edit_b5").css("display","none")
     };
     });
     $('#table_b_chebox6').click(function(){
      if($("#table_b_chebox6").is(":checked")){
        $("#inves_edit_b6").css("display","block")
     }else{
        $("#inves_edit_b6").css("display","none")
     };
     });
      $('#table_b_chebox7').click(function(){
      if($("#table_b_chebox7").is(":checked")){
        $("#inves_edit_b7").css("display","block")
     }else{
        $("#inves_edit_b7").css("display","none")
     };
     });
       $('#table_b_chebox8').click(function(){
      if($("#table_b_chebox8").is(":checked")){
        $("#inves_edit_b8").css("display","block")
     }else{
        $("#inves_edit_b8").css("display","none")
     };
     });
       $('#table_b_chebox9').click(function(){
      if($("#table_b_chebox9").is(":checked")){
        $("#inves_edit_b9").css("display","block")
     }else{
        $("#inves_edit_b9").css("display","none")
     };
     });
 //dqaq 10-16
    $('#table_b_chebox10').click(function(){
      if($("#table_b_chebox10").is(":checked")){
        $("#inves_edit_b10").css("display","block")
     }else{
        $("#inves_edit_b10").css("display","none")
     };
     });
    $('#table_b_chebox11').click(function(){
      if($("#table_b_chebox11").is(":checked")){
        $("#inves_edit_b11").css("display","block")
     }else{
        $("#inves_edit_b11").css("display","none")
     };
     });
    $('#table_b_chebox12').click(function(){
      if($("#table_b_chebox12").is(":checked")){
        $("#inves_edit_b12").css("display","block")
     }else{
        $("#inves_edit_b12").css("display","none")
     };
     });
    $('#table_b_chebox13').click(function(){
      if($("#table_b_chebox13").is(":checked")){
        $("#inves_edit_b13").css("display","block")
     }else{
        $("#inves_edit_b13").css("display","none")
     };
     });
    $('#table_b_chebox14').click(function(){
      if($("#table_b_chebox14").is(":checked")){
        $("#inves_edit_b14").css("display","block")
     }else{
        $("#inves_edit_b14").css("display","none")
     };
     });
    $('#table_b_chebox15').click(function(){
      if($("#table_b_chebox15").is(":checked")){
        $("#inves_edit_b15").css("display","block")
     }else{
        $("#inves_edit_b15").css("display","none")
     };
     });
    $('#table_b_chebox16').click(function(){
      if($("#table_b_chebox16").is(":checked")){
        $("#inves_edit_b16").css("display","block")
     }else{
        $("#inves_edit_b16").css("display","none")
     };
     });
    //whp17-24
    $('#table_b_chebox17').click(function(){
      if($("#table_b_chebox17").is(":checked")){
        $("#inves_edit_b17").css("display","block")
     }else{
        $("#inves_edit_b17").css("display","none")
     };
     });
    $('#table_b_chebox18').click(function(){
      if($("#table_b_chebox18").is(":checked")){
        $("#inves_edit_b18").css("display","block")
     }else{
        $("#inves_edit_b18").css("display","none")
     };
     });
     $('#table_b_chebox19').click(function(){
      if($("#table_b_chebox19").is(":checked")){
        $("#inves_edit_b19").css("display","block")
     }else{
        $("#inves_edit_b19").css("display","none")
     };
     });
      $('#table_b_chebox20').click(function(){
      if($("#table_b_chebox20").is(":checked")){
        $("#inves_edit_b20").css("display","block")
     }else{
        $("#inves_edit_b20").css("display","none")
     };
     });
       $('#table_b_chebox21').click(function(){
      if($("#table_b_chebox21").is(":checked")){
        $("#inves_edit_b21").css("display","block")
     }else{
        $("#inves_edit_b21").css("display","none")
     };
     });
        $('#table_b_chebox22').click(function(){
      if($("#table_b_chebox22").is(":checked")){
        $("#inves_edit_b22").css("display","block")
     }else{
        $("#inves_edit_b22").css("display","none")
     };
     });
         $('#table_b_chebox23').click(function(){
      if($("#table_b_chebox23").is(":checked")){
        $("#inves_edit_b23").css("display","block")
     }else{
        $("#inves_edit_b23").css("display","none")
     };
     });
    $('#table_b_chebox24').click(function(){
      if($("#table_b_chebox24").is(":checked")){
        $("#inves_edit_b24").css("display","block")
     }else{
        $("#inves_edit_b24").css("display","none")
     };
     });
    //zyjk 25-27
       $('#table_b_chebox25').click(function(){
      if($("#table_b_chebox25").is(":checked")){
        $("#inves_edit_b25").css("display","block")
     }else{
      $("#inves_edit_b25").css("display","none")
     };
     });
         $('#table_b_chebox26').click(function(){
      if($("#table_b_chebox26").is(":checked")){
        $("#inves_edit_b26").css("display","block")
     }else{
        $("#inves_edit_b26").css("display","none")
     };
     });
       $('#table_b_chebox27').click(function(){
      if($("#table_b_chebox27").is(":checked")){
        $("#inves_edit_b27").css("display","block")
     }else{
        $("#inves_edit_b27").css("display","none")
     };
     });
    //tzsb 28-29
      $('#table_b_chebox28').click(function(){
      if($("#table_b_chebox28").is(":checked")){
        $("#inves_edit_b28").css("display","block")
     }else{
        $("#inves_edit_b28").css("display","none")
     };
     });
      $('#table_b_chebox29').click(function(){
      if($("#table_b_chebox29").is(":checked")){
        $("#inves_edit_b29").css("display","block")
     }else{
        $("#inves_edit_b29").css("display","none")
     };
     });
      //fcsb 30-36
      $('#table_b_chebox30').click(function(){
      if($("#table_b_chebox30").is(":checked")){
        $("#inves_edit_b30").css("display","block")
     }else{
        $("#inves_edit_b30").css("display","none")
     };
     });
     $('#table_b_chebox31').click(function(){
      if($("#table_b_chebox31").is(":checked")){
        $("#inves_edit_b31").css("display","block")
     }else{
        $("#inves_edit_b31").css("display","none")
     };
     });
      $('#table_b_chebox32').click(function(){
      if($("#table_b_chebox32").is(":checked")){
        $("#inves_edit_b32").css("display","block")
     }else{
        $("#inves_edit_b32").css("display","none")
     };
     });
    $('#table_b_chebox33').click(function(){
      if($("#table_b_chebox33").is(":checked")){
        $("#inves_edit_b33").css("display","block")
     }else{
        $("#inves_edit_b33").css("display","none")
     };
     });
       $('#table_b_chebox34').click(function(){
      if($("#table_b_chebox34").is(":checked")){
        $("#inves_edit_b34").css("display","block")
     }else{
        $("#inves_edit_b34").css("display","none")
     };
     });
     $('#table_b_chebox35').click(function(){
      if($("#table_b_chebox35").is(":checked")){
        $("#inves_edit_b35").css("display","block")
     }else{
        $("#inves_edit_b35").css("display","none")
     };
     });
     $('#table_b_chebox36').click(function(){
      if($("#table_b_chebox36").is(":checked")){
        $("#inves_edit_b36").css("display","block")
     }else{
        $("#inves_edit_b36").css("display","none")
     };
     });
     //yxkj 37-40
     $('#table_b_chebox37').click(function(){
      if($("#table_b_chebox37").is(":checked")){
        $("#inves_edit_b37").css("display","block")
     }else{
        $("#inves_edit_b37").css("display","none")
     };
     });
       $('#table_b_chebox38').click(function(){
      if($("#table_b_chebox38").is(":checked")){
        $("#inves_edit_b38").css("display","block")
     }else{
        $("#inves_edit_b38").css("display","none")
     };
     });
         $('#table_b_chebox39').click(function(){
      if($("#table_b_chebox39").is(":checked")){
        $("#inves_edit_b39").css("display","block")
     }else{
        $("#inves_edit_b39").css("display","none")
     };
     });
     $('#table_b_chebox40').click(function(){
      if($("#table_b_chebox40").is(":checked")){
        $("#inves_edit_b40").css("display","block")
     }else{
        $("#inves_edit_b40").css("display","none")
     };
     });
 $('#table_b_chebox41').click(function(){
      if($("#table_b_chebox41").is(":checked")){
        $("#inves_edit_b41").css("display","block")
     }else{
        $("#inves_edit_b41").css("display","none")
     };
     }); $('#table_b_chebox42').click(function(){
      if($("#table_b_chebox42").is(":checked")){
        $("#inves_edit_b42").css("display","block")
     }else{
        $("#inves_edit_b42").css("display","none")
     };
     }); $('#table_b_chebox43').click(function(){
      if($("#table_b_chebox43").is(":checked")){
        $("#inves_edit_b43").css("display","block")
     }else{
        $("#inves_edit_b43").css("display","none")
     };
     }); $('#table_b_chebox44').click(function(){
      if($("#table_b_chebox44").is(":checked")){
        $("#inves_edit_b44").css("display","block")
     }else{
        $("#inves_edit_b44").css("display","none")
     };
     }); $('#table_b_chebox45').click(function(){
      if($("#table_b_chebox45").is(":checked")){
        $("#inves_edit_b45").css("display","block")
     }else{
        $("#inves_edit_b45").css("display","none")
     };
     }); $('#table_b_chebox46').click(function(){
      if($("#table_b_chebox46").is(":checked")){
        $("#inves_edit_b46").css("display","block")
     }else{
        $("#inves_edit_b46").css("display","none")
     };
     }); $('#table_b_chebox47').click(function(){
      if($("#table_b_chebox47").is(":checked")){
        $("#inves_edit_b47").css("display","block")
     }else{
        $("#inves_edit_b47").css("display","none")
     };
     }); $('#table_b_chebox48').click(function(){
      if($("#table_b_chebox48").is(":checked")){
        $("#inves_edit_b48").css("display","block")
     }else{
        $("#inves_edit_b48").css("display","none")
     };
     }); $('#table_b_chebox49').click(function(){
      if($("#table_b_chebox49").is(":checked")){
        $("#inves_edit_b49").css("display","block")
     }else{
        $("#inves_edit_b49").css("display","none")
     };
     });$('#table_b_chebox50').click(function(){
      if($("#table_b_chebox50").is(":checked")){
        $("#inves_edit_b50").css("display","block")
     }else{
        $("#inves_edit_b50").css("display","none")
     };
     }); $('#table_b_chebox51').click(function(){
      if($("#table_b_chebox51").is(":checked")){
        $("#inves_edit_b51").css("display","block")
     }else{
        $("#inves_edit_b51").css("display","none")
     };
     }); $('#table_b_chebox52').click(function(){
      if($("#table_b_chebox52").is(":checked")){
        $("#inves_edit_b52").css("display","block")
     }else{
        $("#inves_edit_b52").css("display","none")
     };
     }); $('#table_b_chebox53').click(function(){
      if($("#table_b_chebox53").is(":checked")){
        $("#inves_edit_b53").css("display","block")
     }else{
        $("#inves_edit_b53").css("display","none")
     };
     }); $('#table_b_chebox54').click(function(){
      if($("#table_b_chebox54").is(":checked")){
        $("#inves_edit_b54").css("display","block")
     }else{
        $("#inves_edit_b54").css("display","none")
     };
     }); $('#table_b_chebox55').click(function(){
      if($("#table_b_chebox55").is(":checked")){
        $("#inves_edit_b55").css("display","block")
     }else{
        $("#inves_edit_b55").css("display","none")
     };
     }); $('#table_b_chebox56').click(function(){
      if($("#table_b_chebox56").is(":checked")){
        $("#inves_edit_b56").css("display","block")
     }else{
        $("#inves_edit_b56").css("display","none")
     };
     }); $('#table_b_chebox57').click(function(){
      if($("#table_b_chebox57").is(":checked")){
        $("#inves_edit_b57").css("display","block")
     }else{
        $("#inves_edit_b57").css("display","none")
     };
     }); $('#table_b_chebox58').click(function(){
      if($("#table_b_chebox58").is(":checked")){
        $("#inves_edit_b58").css("display","block")
     }else{
        $("#inves_edit_b58").css("display","none")
     };
     }); $('#table_b_chebox59').click(function(){
      if($("#table_b_chebox59").is(":checked")){
        $("#inves_edit_b59").css("display","block")
     }else{
        $("#inves_edit_b59").css("display","none")
     };
     }); $('#table_b_chebox60').click(function(){
      if($("#table_b_chebox60").is(":checked")){
        $("#inves_edit_b60").css("display","block")
     }else{
        $("#inves_edit_b60").css("display","none")
     };
     });
if($('.radio_ck11').is(':checked')){$('.radio_ck11').parent().siblings("input[type='checkbox']").val(11);}
if($('.radio_ck21').is(':checked')){$('.radio_ck21').parent().siblings("input[type='checkbox']").val(21);}
if($('.radio_ck31').is(':checked')){$('.radio_ck31').parent().siblings("input[type='checkbox']").val(31);}
if($('.radio_ck41').is(':checked')){$('.radio_ck41').parent().siblings("input[type='checkbox']").val(41);}
if($('.radio_ck51').is(':checked')){$('.radio_ck51').parent().siblings("input[type='checkbox']").val(51);}
if($('.radio_ck61').is(':checked')){$('.radio_ck61').parent().siblings("input[type='checkbox']").val(61);}
if($('.radio_ck71').is(':checked')){$('.radio_ck71').parent().siblings("input[type='checkbox']").val(71);}
if($('.radio_ck81').is(':checked')){$('.radio_ck81').parent().siblings("input[type='checkbox']").val(81);}
if($('.radio_ck91').is(':checked')){$('.radio_ck91').parent().siblings("input[type='checkbox']").val(91);}

$('.radio_ck11').click(function(){
       $('.radio_ck11').parent().siblings("input[type='checkbox']").val(11);
     });
 $('.radio_ck10').click(function(){
       $('.radio_ck10').parent().siblings("input[type='checkbox']").val(10);
     });
 $('.radio_ck21').click(function(){
       $('.radio_ck21').parent().siblings("input[type='checkbox']").val(21);
     });
 $('.radio_ck20').click(function(){
       $('.radio_ck20').parent().siblings("input[type='checkbox']").val(20);
     });
 $('.radio_ck31').click(function(){
       $('.radio_ck31').parent().siblings("input[type='checkbox']").val(31);
     });
 $('.radio_ck30').click(function(){
       $('.radio_ck30').parent().siblings("input[type='checkbox']").val(30);
     });
 $('.radio_ck41').click(function(){
       $('.radio_ck41').parent().siblings("input[type='checkbox']").val(41);
     });
 $('.radio_ck40').click(function(){
       $('.radio_ck40').parent().siblings("input[type='checkbox']").val(40);
     });
 $('.radio_ck51').click(function(){
       $('.radio_ck51').parent().siblings("input[type='checkbox']").val(51);
     });
 $('.radio_ck50').click(function(){
       $('.radio_ck50').parent().siblings("input[type='checkbox']").val(50);
     });
 $('.radio_ck61').click(function(){
       $('.radio_ck61').parent().siblings("input[type='checkbox']").val(61);
     });
 $('.radio_ck60').click(function(){
       $('.radio_ck60').parent().siblings("input[type='checkbox']").val(60);
     });
 $('.radio_ck71').click(function(){
       $('.radio_ck71').parent().siblings("input[type='checkbox']").val(71);
     });
 $('.radio_ck70').click(function(){
       $('.radio_ck70').parent().siblings("input[type='checkbox']").val(70);
     });
 $('.radio_ck81').click(function(){
       $('.radio_ck81').parent().siblings("input[type='checkbox']").val(81);
     });
 $('.radio_ck80').click(function(){
       $('.radio_ck80').parent().siblings("input[type='checkbox']").val(80);
     });
 $('.radio_ck91').click(function(){
       $('.radio_ck91').parent().siblings("input[type='checkbox']").val(91);
     });
 $('.radio_ck90').click(function(){
       $('.radio_ck90').parent().siblings("input[type='checkbox']").val(90);
     });

if($("#table_b_chebox1").is(":checked")){
    $("#inves_edit_b1").css("display","block");
    $("#table_b_hidden1").prop("disabled",true)
}else{
    $("#inves_edit_b1").css("display","none");
    $("#table_b_hidden1").prop("disabled",true);};



if($("#table_b_chebox2").is(":checked")){$("#inves_edit_b2").css("display","block");$("#table_b_hidden2").prop("disabled",true)}else{$("#inves_edit_b2").css("display","none");$("#table_b_hidden2").prop("disabled",true);};
if($("#table_b_chebox3").is(":checked")){$("#inves_edit_b3").css("display","block");$("#table_b_hidden3").prop("disabled",true)}else{$("#inves_edit_b3").css("display","none");$("#table_b_hidden3").prop("disabled",true);}; 
if($("#table_b_chebox4").is(":checked")){$("#inves_edit_b4").css("display","block");$("#table_b_hidden4").prop("disabled",true)}else{$("#inves_edit_b4").css("display","none");$("#table_b_hidden4").prop("disabled",true);}; 
if($("#table_b_chebox5").is(":checked")){$("#inves_edit_b5").css("display","block");$("#table_b_hidden5").prop("disabled",true)}else{$("#inves_edit_b5").css("display","none");$("#table_b_hidden5").prop("disabled",true);}; 
if($("#table_b_chebox6").is(":checked")){$("#inves_edit_b6").css("display","block");$("#table_b_hidden6").prop("disabled",true)}else{$("#inves_edit_b6").css("display","none");$("#table_b_hidden6").prop("disabled",true);}; 
if($("#table_b_chebox7").is(":checked")){$("#inves_edit_b7").css("display","block");$("#table_b_hidden7").prop("disabled",true)}else{$("#inves_edit_b7").css("display","none");$("#table_b_hidden7").prop("disabled",true);}; 
if($("#table_b_chebox8").is(":checked")){$("#inves_edit_b8").css("display","block");$("#table_b_hidden8").prop("disabled",true)}else{$("#inves_edit_b8").css("display","none");$("#table_b_hidden8").prop("disabled",true);}; 
if($("#table_b_chebox9").is(":checked")){$("#inves_edit_b9").css("display","block");$("#table_b_hidden9").prop("disabled",true)}else{$("#inves_edit_b9").css("display","none");$("#table_b_hidden9").prop("disabled",true);}; 
if($("#table_b_chebox10").is(":checked")){$("#inves_edit_b10").css("display","block");$("#table_b_hidden10").prop("disabled",true)}else{$("#inves_edit_b10").css("display","none");$("#table_b_hidden10").prop("disabled",true);}; 
if($("#table_b_chebox11").is(":checked")){$("#inves_edit_b11").css("display","block");$("#table_b_hidden11").prop("disabled",true)}else{$("#inves_edit_b11").css("display","none");$("#table_b_hidden11").prop("disabled",true);};
if($("#table_b_chebox12").is(":checked")){$("#inves_edit_b12").css("display","block");$("#table_b_hidden12").prop("disabled",true)}else{$("#inves_edit_b12").css("display","none");$("#table_b_hidden12").prop("disabled",true);};
if($("#table_b_chebox13").is(":checked")){$("#inves_edit_b13").css("display","block");$("#table_b_hidden13").prop("disabled",true)}else{$("#inves_edit_b13").css("display","none");$("#table_b_hidden13").prop("disabled",true);}; 
if($("#table_b_chebox14").is(":checked")){$("#inves_edit_b14").css("display","block");$("#table_b_hidden14").prop("disabled",true)}else{$("#inves_edit_b14").css("display","none");$("#table_b_hidden14").prop("disabled",true);}; 
if($("#table_b_chebox15").is(":checked")){$("#inves_edit_b15").css("display","block");$("#table_b_hidden15").prop("disabled",true)}else{$("#inves_edit_b15").css("display","none");$("#table_b_hidden15").prop("disabled",true);}; 
if($("#table_b_chebox16").is(":checked")){$("#inves_edit_b16").css("display","block");$("#table_b_hidden16").prop("disabled",true)}else{$("#inves_edit_b16").css("display","none");$("#table_b_hidden16").prop("disabled",true);}; 
if($("#table_b_chebox17").is(":checked")){$("#inves_edit_b17").css("display","block");$("#table_b_hidden17").prop("disabled",true)}else{$("#inves_edit_b17").css("display","none");$("#table_b_hidden17").prop("disabled",true);}; 
if($("#table_b_chebox18").is(":checked")){$("#inves_edit_b18").css("display","block");$("#table_b_hidden18").prop("disabled",true)}else{$("#inves_edit_b18").css("display","none");$("#table_b_hidden18").prop("disabled",true);}; 
if($("#table_b_chebox19").is(":checked")){$("#inves_edit_b19").css("display","block");$("#table_b_hidden19").prop("disabled",true)}else{$("#inves_edit_b19").css("display","none");$("#table_b_hidden19").prop("disabled",true);}; 
if($("#table_b_chebox20").is(":checked")){$("#inves_edit_b20").css("display","block");$("#table_b_hidden20").prop("disabled",true)}else{$("#inves_edit_b20").css("dsplay","none");$("#table_b_hidden20").prop("disabled",true);}; 
if($("#table_b_chebox21").is(":checked")){$("#inves_edit_b21").css("display","block");$("#table_b_hidden21").prop("disabled",true)}else{$("#inves_edit_b21").css("display","none");$("#table_b_hidden21").prop("disabled",true);}; 
if($("#table_b_chebox22").is(":checked")){$("#inves_edit_b22").css("display","block");$("#table_b_hidden22").prop("disabled",true)}else{$("#inves_edit_b22").css("display","none");$("#table_b_hidden22").prop("disabled",true);}; 
if($("#table_b_chebox23").is(":checked")){$("#inves_edit_b23").css("display","block");$("#table_b_hidden23").prop("disabled",true)}else{$("#inves_edit_b23").css("display","none");$("#table_b_hidden23").prop("disabled",true);};
if($("#table_b_chebox24").is(":checked")){$("#inves_edit_b24").css("display","block");$("#table_b_hidden24").prop("disabled",true)}else{$("#inves_edit_b24").css("display","none");$("#table_b_hidden24").prop("disabled",true);}; 
if($("#table_b_chebox25").is(":checked")){$("#inves_edit_b25").css("display","block");$("#table_b_hidden25").prop("disabled",true)}else{$("#inves_edit_b25").css("display","none");$("#table_b_hidden25").prop("disabled",true);}; 
if($("#table_b_chebox26").is(":checked")){$("#inves_edit_b26").css("display","block");$("#table_b_hidden26").prop("disabled",true)}else{$("#inves_edit_b26").css("display","none");$("#table_b_hidden26").prop("disabled",true);}; 
if($("#table_b_chebox27").is(":checked")){$("#inves_edit_b27").css("display","block");$("#table_b_hidden27").prop("disabled",true)}else{$("#inves_edit_b27").css("display","none");$("#table_b_hidden27").prop("disabled",true);}; 
if($("#table_b_chebox28").is(":checked")){$("#inves_edit_b28").css("display","block");$("#table_b_hidden28").prop("disabled",true)}else{$("#inves_edit_b28").css("display","none");$("#table_b_hidden28").prop("disabled",true);}; 
if($("#table_b_chebox29").is(":checked")){$("#inves_edit_b29").css("display","block");$("#table_b_hidden29").prop("disabled",true)}else{$("#inves_edit_b29").css("display","none");$("#table_b_hidden29").prop("disabled",true);};
if($("#table_b_chebox30").is(":checked")){$("#inves_edit_b30").css("display","block");$("#table_b_hidden30").prop("disabled",true)}else{$("#inves_edit_b30").css("display","none");$("#table_b_hidden30").prop("disabled",true);}; 
if($("#table_b_chebox31").is(":checked")){$("#inves_edit_b31").css("display","block");$("#table_b_hidden31").prop("disabled",true)}else{$("#inves_edit_b31").css("display","none");$("#table_b_hidden31").prop("disabled",true);}; 
if($("#table_b_chebox32").is(":checked")){$("#inves_edit_b32").css("display","block");$("#table_b_hidden32").prop("disabled",true)}else{$("#inves_edit_b32").css("display","none");$("#table_b_hidden32").prop("disabled",true);}; 
if($("#table_b_chebox33").is(":checked")){$("#inves_edit_b33").css("display","block");$("#table_b_hidden33").prop("disabled",true)}else{$("#inves_edit_b33").css("display","none");$("#table_b_hidden33").prop("disabled",true);}; 
if($("#table_b_chebox34").is(":checked")){$("#inves_edit_b34").css("display","block");$("#table_b_hidden34").prop("disabled",true)}else{$("#inves_edit_b34").css("display","none");$("#table_b_hidden34").prop("disabled",true);};
if($("#table_b_chebox35").is(":checked")){$("#inves_edit_b35").css("display","block");$("#table_b_hidden35").prop("disabled",true)}else{$("#inves_edit_b35").css("display","none");$("#table_b_hidden35").prop("disabled",true);}; 
if($("#table_b_chebox36").is(":checked")){$("#inves_edit_b36").css("display","block");$("#table_b_hidden36").prop("disabled",true)}else{$("#inves_edit_b36").css("display","none");$("#table_b_hidden36").prop("disabled",true);}; 
if($("#table_b_chebox37").is(":checked")){$("#inves_edit_b37").css("display","block");$("#table_b_hidden37").prop("disabled",true)}else{$("#inves_edit_b37").css("display","none");$("#table_b_hidden37").prop("disabled",true);}; 
if($("#table_b_chebox38").is(":checked")){$("#inves_edit_b38").css("display","block");$("#table_b_hidden38").prop("disabled",true)}else{$("#inves_edit_b38").css("display","none");$("#table_b_hidden38").prop("disabled",true);}; 
if($("#table_b_chebox39").is(":checked")){$("#inves_edit_b39").css("display","block");$("#table_b_hidden39").prop("disabled",true)}else{$("#inves_edit_b39").css("display","none");$("#table_b_hidden39").prop("disabled",true);}; 
if($("#table_b_chebox40").is(":checked")){$("#inves_edit_b40").css("display","block");$("#table_b_hidden40").prop("disabled",true)}else{$("#inves_edit_b40").css("display","none");$("#table_b_hidden40").prop("disabled",true);}; 
if($("#table_b_chebox41").is(":checked")){$("#inves_edit_b41").css("display","block");$("#table_b_hidden41").prop("disabled",true)}else{$("#inves_edit_b41").css("display","none");$("#table_b_hidden41").prop("disabled",true);}; 
if($("#table_b_chebox42").is(":checked")){$("#inves_edit_b42").css("display","block");$("#table_b_hidden42").prop("disabled",true)}else{$("#inves_edit_b42").css("display","none");$("#table_b_hidden42").prop("disabled",true);}; 
if($("#table_b_chebox43").is(":checked")){$("#inves_edit_b43").css("display","block");$("#table_b_hidden43").prop("disabled",true)}else{$("#inves_edit_b43").css("display","none");$("#table_b_hidden43").prop("disabled",true);}; 
if($("#table_b_chebox44").is(":checked")){$("#inves_edit_b44").css("display","block");$("#table_b_hidden44").prop("disabled",true)}else{$("#inves_edit_b44").css("display","none");$("#table_b_hidden44").prop("disabled",true);};
if($("#table_b_chebox45").is(":checked")){$("#inves_edit_b45").css("display","block");$("#table_b_hidden45").prop("disabled",true)}else{$("#inves_edit_b45").css("display","none");$("#table_b_hidden45").prop("disabled",true);}; 
if($("#table_b_chebox46").is(":checked")){$("#inves_edit_b46").css("display","block");$("#table_b_hidden46").prop("disabled",true)}else{$("#inves_edit_b46").css("display","none");$("#table_b_hidden46").prop("disabled",true);}; 
if($("#table_b_chebox47").is(":checked")){$("#inves_edit_b47").css("display","block");$("#table_b_hidden47").prop("disabled",true)}else{$("#inves_edit_b47").css("display","none");$("#table_b_hidden47").prop("disabled",true);}; 
if($("#table_b_chebox48").is(":checked")){$("#inves_edit_b48").css("display","block");$("#table_b_hidden48").prop("disabled",true)}else{$("#inves_edit_b48").css("display","none");$("#table_b_hidden48").prop("disabled",true);}; 
if($("#table_b_chebox49").is(":checked")){$("#inves_edit_b49").css("display","block");$("#table_b_hidden49").prop("disabled",true)}else{$("#inves_edit_b49").css("display","none");$("#table_b_hidden49").prop("disabled",true);}; 
if($("#table_b_chebox50").is(":checked")){$("#inves_edit_b50").css("display","block");$("#table_b_hidden50").prop("disabled",true)}else{$("#inves_edit_b50").css("display","none");$("#table_b_hidden50").prop("disabled",true);}; 
if($("#table_b_chebox51").is(":checked")){$("#inves_edit_b51").css("display","block");$("#table_b_hidden51").prop("disabled",true)}else{$("#inves_edit_b51").css("display","none");$("#table_b_hidden51").prop("disabled",true);}; 
if($("#table_b_chebox52").is(":checked")){$("#inves_edit_b52").css("display","block");$("#table_b_hidden52").prop("disabled",true)}else{$("#inves_edit_b52").css("display","none");$("#table_b_hidden52").prop("disabled",true);}; 
if($("#table_b_chebox53").is(":checked")){$("#inves_edit_b53").css("display","block");$("#table_b_hidden53").prop("disabled",true)}else{$("#inves_edit_b53").css("display","none");$("#table_b_hidden53").prop("disabled",true);}; 
if($("#table_b_chebox54").is(":checked")){$("#inves_edit_b54").css("display","block");$("#table_b_hidden54").prop("disabled",true)}else{$("#inves_edit_b54").css("display","none");$("#table_b_hidden54").prop("disabled",true);};
if($("#table_b_chebox55").is(":checked")){$("#inves_edit_b55").css("display","block");$("#table_b_hidden55").prop("disabled",true)}else{$("#inves_edit_b55").css("display","none");$("#table_b_hidden55").prop("disabled",true);}; 
if($("#table_b_chebox56").is(":checked")){$("#inves_edit_b56").css("display","block");$("#table_b_hidden56").prop("disabled",true)}else{$("#inves_edit_b56").css("display","none");$("#table_b_hidden56").prop("disabled",true);}; 
if($("#table_b_chebox57").is(":checked")){$("#inves_edit_b57").css("display","block");$("#table_b_hidden57").prop("disabled",true)}else{$("#inves_edit_b57").css("display","none");$("#table_b_hidden57").prop("disabled",true);}; 
if($("#table_b_chebox58").is(":checked")){$("#inves_edit_b58").css("display","block");$("#table_b_hidden58").prop("disabled",true)}else{$("#inves_edit_b58").css("display","none");$("#table_b_hidden58").prop("disabled",true);}; 
if($("#table_b_chebox59").is(":checked")){$("#inves_edit_b59").css("display","block");$("#table_b_hidden59").prop("disabled",true)}else{$("#inves_edit_b59").css("display","none");$("#table_b_hidden59").prop("disabled",true);}; 
if($("#table_b_chebox60").is(":checked")){$("#inves_edit_b60").css("display","block");$("#table_b_hidden60").prop("disabled",true)}else{$("#inves_edit_b60").css("display","none");$("#table_b_hidden60").prop("disabled",true);};   
};//windows 结尾

(function($) {
    $.fn.menu = function(b) {
        var c,
            item,
            httpAdress;
        b = jQuery.extend({
                Speed: 100,
                autostart: 1,
                autohide: 1
            },
            b);
        c = $(this);
        item = c.children("ul").parent("li").children("a");
        httpAdress = window.location;
        item.addClass("inactive");
        function _item() {
            var a = $(this);
            if (b.autohide) {
                a.parent().parent().find(".active").parent("li").children("ul").slideUp(b.Speed / 1.2,
                    function() {
                        $(this).parent("li").children("a").removeAttr("class");
                        $(this).parent("li").children("a").attr("class", "inactive");
                        $(this).parent("li").children("a").attr("id", "posia_eq");
                    })
            }
            if (a.attr("class") == "inactive") {
                a.parent("li").children("ul").slideDown(b.Speed,
                    function() {
                        a.removeAttr("class");
                        a.addClass("active")
                        a.text("缩小");
                    })
            }
            if (a.attr("class") == "active") {
                a.removeAttr("class");
                a.addClass("inactive");
                a.text("展开");
                a.parent("li").children("ul").slideUp(b.Speed)
            }
        }
        item.unbind('click').click(_item);
        if (b.autostart) {
            c.children("a").each(function() {
                if (this.href == httpAdress) {
                    $(this).parent("li").parent("ul").slideDown(b.Speed,
                        function() {
                            $(this).parent("li").children(".inactive").removeAttr("class");
                            $(this).parent("li").children("a").addClass("active");
                        })
                }
            })
        }
    }
})(jQuery);